package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.BccBasicInfoCrawl;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Jason
 * @date 2018/2/4
 */
public interface BccBasicInfoCrawlDao extends JpaRepository<BccBasicInfoCrawl, String> {

    List<BccBasicInfoCrawl> findByBatchNo(String batch);

    List<BccBasicInfoCrawl> findByBccId(String bccId);

    List<BccBasicInfoCrawl> findByBccIdAndBatchNo(String bccId, String batch);

    Page<BccBasicInfoCrawl> findByBatchNo(String batch, Pageable pageable);

    void deleteByBatchNo(String batch);

}
